package com.itheima.test4;

public class Test {
    public static void main(String[] args) {
        Zi zi= new Zi();
        Zi.rap();
    }

}


class Fu{


    public static void rap(){
        System.out.println("父类静态的rap");
    }
    protected void sing(){
        System.out.println("父类默认 sing");
    }


}
class Zi extends Fu{

    public static void rap(){
        System.out.println("zi类静态的rap");
    }
    @Override
    public void sing(){
        System.out.println("父类public sing");
    }

}